<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yanchao
  Date: 2021/11/7
  Time: 下午8:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>基础信息维护 - 助学贷款系统</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css">
    <link rel="stylesheet" href="./static/admin/css/style.css">
    <script src="./static/layui/layui.js"></script>
    <script src="./static/js/jquery-3.3.1.min.js"></script>
    <script src="./static/js/vue.min.js"></script>
    <script src="./static/admin/js/userConfig.js"></script>
</head>
<body class="p20">



<fieldset class="layui-elem-field layui-field-title">
    <legend>基础信息维护</legend>
</fieldset>

<form class="layui-form " method="post" action="/userEdit.do?id=${sessionScope.user.id}" >
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="username" class="layui-input" value="${sessionScope.user.username}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="realname" class="layui-input" value="${sessionScope.user.realname}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <select name="sex" id="lecttype">
                <option value="${sessionScope.user.sex}"><c:if test="${sessionScope.user.sex == null}">请选择</c:if>${sessionScope.user.sex}</option>
                <option value="男">男</option>
                <option value="女">女</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-block">
            <input type="text" name="age" class="layui-input" value="${sessionScope.user.age}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份证号</label>
        <div class="layui-input-block">
            <input type="text" name="cardid" class="layui-input" value="${sessionScope.user.cardid}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话号码</label>
        <div class="layui-input-block">
            <input type="text" name="phone" class="layui-input" value="${sessionScope.user.phone}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">民族</label>
        <div class="layui-input-block">
            <input type="text" name="nation" class="layui-input" value="${sessionScope.user.nation}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">籍贯</label>
        <div class="layui-input-block">
            <input type="text" name="nativel" class="layui-input" value="${sessionScope.user.nativel}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">政治面貌</label>
        <div class="layui-input-block">
            <select name="politics" id="selecttype">
                <option value="${sessionScope.user.politics}"><c:if test="${sessionScope.user.politics == null}">请选择</c:if>${sessionScope.user.politics}</option>
                <option value="男">党员</option>
                <option value="女">团员</option>
                <option value="女">群众</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭住址</label>
        <div class="layui-input-block">
            <input type="text" name="address" class="layui-input" value="${sessionScope.user.address}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮编</label>
        <div class="layui-input-block">
            <input type="text" name="postcode" class="layui-input" value="${sessionScope.user.postcode}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学校</label>
        <div class="layui-input-block">
            <input type="text" name="school" class="layui-input" value="${sessionScope.user.school}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专业</label>
        <div class="layui-input-block">
            <input type="text" name="major" class="layui-input" value="${sessionScope.user.major}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学历</label>
        <div class="layui-input-block">
            <select name="education">
                <option value="${sessionScope.user.education}"><c:if test="${sessionScope.user.education == null}">请选择</c:if>${sessionScope.user.education}</option>
                <option value="硕士">硕士</option>
                <option value="本科">本科</option>
                <option value="大专">专科</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学制</label>
        <div class="layui-input-block">
            <select name="schoolyear">
                <option value="${sessionScope.user.schoolyear}"><c:if test="${sessionScope.user.schoolyear == null}">请选择</c:if>${sessionScope.user.schoolyear}</option>
                <option value="3">3年</option>
                <option value="4">4年</option>
                <option value="5">5年</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="text-align: center;">
            <button class="layui-btn" type="submit" onclick="jump()">提交</button>
        </div>
    </div>
</form>



<script src="./static/admin/js/script.js"></script>
<script type="text/javascript" language="javascript">
    function jump() {
       alert("修改成功！")
    }
</script>
</body>
</html>
